#!/usr/bin/env python
#-*-encoding:utf-8-*-
'''
Created on 2015年10月27日

@author: chenyongbing
'''
import sys,os
#current_dir = os.path.dirname(__file__)
current_dir = os.path.split(os.path.realpath(__file__))[0]

import inspect


def get_params_from_method(argvalues):
    keys = argvalues.args
    locals = argvalues.locals
    
    datas = {}
    
    for k,v in locals.items():
        if k in keys:
            datas[k] = v
    return datas

def main(a='',b=''):
    c = '2'
    argvalues = inspect.getargvalues(inspect.currentframe())
    print get_params(argvalues)
    
    
main(a="1")